<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>坦克大战小游戏</title>
    <link rel="stylesheet" href="./css/index.css" />
  </head>
  <body>
    <div class="enemy" id="enemy">NPC阵地生命值：<span>9</span></div>
    <div id="map" class="map"></div>
    <button id="reload">重新开始</button>
    <div class="player" id="player">
      <div class="score">玩家积分：<span>0</span></div>
      <div class="player-life">生命值：<span>3</span></div>
      <div class="camp-life">玩家阵地生命值：<span>9</span></div>
    </div>
    <div class="rule">
      <div class="title">坦克大战小游戏游戏规则</div>
      <div>玩家阵营</div>
      <ol>
        <li>玩家（默认生命值3格）通过上下左右键移动，移动范围始终在地图内</li>
        <li>按Q键发射子弹攻击游戏NPC</li>
        <li>每被击中一次生命值减一，清零游戏结束</li>
        <li>击中NPC一次积分加一</li>
      </ol>
      <div>敌方阵营：</div>
      <ol>
        <li>NPC随机移动，自动发射子弹，移动范围始终在地图内，移动方向随机</li>
        <li>NPC被击中会重新生成一个</li>
      </ol>
      <div>注：双方阵地默认生命值 9</div>
    </div>
    <!-- <script src="./js/tools.js"></script>
    <script src="./js/commom.js"></script>
    <script src="./js/bullet.js"></script>
    <script src="./js/player.js"></script>
    <script src="./js/enemy.js"></script>
    <script src="./js/game.js"></script>
    <script src="./js/main.js"></script> -->
    <!-- <script src="./js/index.js"></script> -->
    <script src="./js/index.min.js"></script>
  </body>
</html>
